package distribuicaoDeProfessores;

/**
 *
 * @author Jaime
 */
public class ItensHorario implements java.io.Serializable{
    Disciplina disciplina;
    Professor professor;
    String local;
    
    public ItensHorario(Disciplina disciplina, String local) {
        this.disciplina = disciplina;
        this.local = local;
        professor = null;
    }

    public Disciplina getDisciplina() {
        return disciplina;
    }

    public void setDisciplina(Disciplina disciplina) {
        this.disciplina = disciplina;
    }

    public String getLocal() {
        return local;
    }

    public void setLocal(String local) {
        this.local = local;
    }
    public Professor getProfessor() {
        return professor;
    }

    public void setProfessor(Professor professor) {
        this.professor = professor;
    }

    @Override
    public String toString() {
        return "Periodo: "+ disciplina.getPeriodo()+ "º\t Disciplina: " + disciplina + "\t Professor: " + professor + "\t Local:" + local;
    }
    
    
    
}
